# -*- ecoding: utf-8 -*-
# @Author: Wick
# @Time: 2024-02-23 17:18


def demo1():
    global  num
    num = 100
    print(num)
# 定义全局变量
num = 10
demo1()
print("执行之后num=%d" % num)